package com.itheima.controller;

/**
 * @author Xiao
 * @date 2021/9/16
 */
public class Code {
    public static final Integer SAVE_OK = 20011;    //添加成功
    public static final Integer UPDATE_OK = 20021;  //修改成功
    public static final Integer DELETE_OK = 20031;  //删除成功
    public static final Integer GET_OK = 20041; //查询成功

    public static final Integer SAVE_ERR = 20010;   //添加失败
    public static final Integer UPDATE_ERR = 20020; //修改失败
    public static final Integer DELETE_ERR = 20030; //删除失败
    public static final Integer GET_ERR = 20040;    //查询失败

    public static final Integer SYSTEM_ERR = 50001; //系统异常
    public static final Integer SYSTEM_TIMEOUT_ERR = 50002; //响应超时异常
    public static final Integer SYSTEM_UNKNOWN_ERR = 59999; //其他未知异常
    public static final Integer BUSINESS_ERR = 60001;   //业务异常
}
